Performance-related data indicators
Access the redis server through the redis-cli interface, and then use the info command to obtain all information related to the redis service. This information is used to analyze some performance indicators
Basic use cases of redis in PHP and redisPHP. The basic use cases of redis in PHP, and the use cases of redisPHP download www. oschina. after netpredis is decompressed, it contains the lib source file, examples example, and test the basic use case
Php-redis help manual _ set related _ sAdd_sRem_sRemove_sMove_s .... Set data type-related operations in Redis, we can view the Set type as a character set without sorting, the same as the List type, you can also add or set data types on the data
Set data type related operations
In Redis, we can see the set type as an unordered character set, and as with the list type, we can also perform operations such as adding, deleting, or judging whether an element exists on the data value of that
Set data type-related operations in Redis, we can view the Set type as a character set without sorting, the same as the List type, you can also add, delete, or determine whether an element exists on the data value of this type. It should be noted
Redis persistence and redis persistence
Redis has two persistence Methods: Snapshot (RDBFiles) and append files (AOFFile)
RDB persistence is used to save a data snapshot at a specific interval.
The AOF (Append only file) Persistence method
Set Data Type related operations
In Redis, we can view the Set type as a character Set combination without sorting, which is the same as the List type, you can also add, delete, or determine whether an element exists on the data value of this type.
/**string type Operation **/
# string is the most basic type of Redis, and the string type is binary safe.
# meaning that Redis string can contain any data, such as a JPG image or a serialized object.
$redis->set (' key ', ' TK ');
$redis->set ('
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.